package com.funny.test.aop;

import lombok.extern.slf4j.Slf4j;
import org.springframework.aop.MethodBeforeAdvice;

import java.lang.reflect.Method;

/**
 * @author fanxiao  2022/2/15
 * @since 1.0.0
 */
@Slf4j
public class ProxyMethodBeforeAdvice implements MethodBeforeAdvice {

	@Override
	public void before(Method method, Object[] args, Object target) throws Throwable {
		log.info("现在进入的方法名称为:{}", method.getName());
	}
}